package com.house.rent.entity;

import java.io.Serializable;

/**
 * 房源信息实体
 */
public class HouseEntity implements Serializable {

    /**
     * id
     */
    private long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 户型
     */
    private String apartment;

    /**
     * 面积
     */
    private int size;

    /**
     * 楼层
     */
    private int floor;

    /**
     * 小区名称
     */
    private String communityName;

    /**
     * 地址
     */
    private String address;

    /**
     * 类型 0-出售 1-求购 2-求租 3-出租
     */
    private int type;

    /**
     * 描述
     */
    private String description;

    /**
     * 房屋照片
     */
    private String housePhoto;

    /**
     * 最高价格
     */
    private int ceilingPrice;

    /**
     * 最低价格
     */
    private int minimumPrice;

    /**
     * 用户id
     */
    private int userId;

    /**
     * 用户昵称
     */
    private String nickName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        if (name == null) {
            name = "";
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getApartment() {
        if (apartment == null) {
            apartment = "";
        }
        return apartment;
    }

    public void setApartment(String apartment) {
        this.apartment = apartment;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getFloor() {
        return floor;
    }

    public void setFloor(int floor) {
        this.floor = floor;
    }

    public String getCommunityName() {
        if (communityName == null) {
            communityName = "";
        }
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getAddress() {
        if (address == null) {
            address = "";
        }
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDescription() {
        if (description == null) {
            description = "";
        }
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getHousePhoto() {
        if (housePhoto == null) {
            housePhoto = "";
        }
        return housePhoto;
    }

    public void setHousePhoto(String housePhoto) {
        this.housePhoto = housePhoto;
    }

    public int getCeilingPrice() {
        return ceilingPrice;
    }

    public void setCeilingPrice(int ceilingPrice) {
        this.ceilingPrice = ceilingPrice;
    }

    public int getMinimumPrice() {
        return minimumPrice;
    }

    public void setMinimumPrice(int minimumPrice) {
        this.minimumPrice = minimumPrice;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getNickName() {
        if (nickName == null) {
            nickName = "";
        }
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
